<?php /*a:3:{s:80:"D:\wangzhan\phpstudy_pro\WWW\swiftadmin\app\admin\view\system\admin\message.html";i:1655521927;s:73:"D:\wangzhan\phpstudy_pro\WWW\swiftadmin\app\admin\view\public\header.html";i:1655521927;s:73:"D:\wangzhan\phpstudy_pro\WWW\swiftadmin\app\admin\view\public\footer.html";i:1655521927;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>SwiftAdmin 后台管理开发框架</title>
	<link href="/favicon.ico" rel="icon">
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link href="/static/system/layui/css/layui.css?v=<?php echo release(); ?>" rel="stylesheet" type="text/css" />
	 <link href="/static/system/css/style.css?v=<?php echo release(); ?>" rel="stylesheet" type="text/css" />
	<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<script>
	var _global_ = {
		app: "<?php echo htmlentities((isset($app) && ($app !== '')?$app:'admin.php')); ?>",
		controller: "<?php echo htmlentities((isset($controller) && ($controller !== '')?$controller:'index')); ?>",
		action: "<?php echo htmlentities((isset($action) && ($action !== '')?$action:'index')); ?>",
		api: "<?php echo config('app.api_url'); ?>"
	};

	var _upload_chunkSize =  <?php echo saenv('upload_chunk_size'); ?>;
</script>

<body>
<link href="/static/system/css/message.css" rel="stylesheet" type="text/css" />
<div class="layui-tab layui-tab-brief" >

    <ul class="layui-tab-title" style="text-align: center;">
        <li class="layui-this" id="msg" ><?php echo __('通知'); ?>(<?php echo count($list['msg']); ?>)</li>
        <li id="comment" ><?php echo __('私信'); ?>(<?php echo count($list['comment']); ?>)</li>
        <li id="things" ><?php echo __('待办'); ?>(<?php echo count($list['things']); ?>)</li>
    </ul>

     <div class="layui-tab-content" style="padding: 5px 0px;">

        <div class="layui-tab-item layui-show">
            
            <div class="layui-message-list" >
                <?php if(is_array($list['msg']) || $list['msg'] instanceof \think\Collection || $list['msg'] instanceof \think\Paginator): $i = 0; $__LIST__ = $list['msg'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <a class="layui-message-list-item" href="javascript:;">
                    <img class="layui-message-item-icon" src="/static/system/images//message.png">
                    <!-- <i class="layui-message-item-icon layui-icon layui-icon-email"></i> -->
                    <div class="layui-message-item-right">
                        <h2 class="layui-message-item-title"><?php echo htmlentities($vo['title']); ?></h2>
                        <p class="layui-message-item-text"><?php echo htmlentities($vo['create_time']); ?></p>
                    </div>
                </a>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

            <!-- // 列表为空 -->
            <div class="layui-message-list-empty" <?php if(empty($list['msg']) || (($list['msg'] instanceof \think\Collection || $list['msg'] instanceof \think\Paginator ) && $list['msg']->isEmpty())): ?> style="display:black;" <?php else: ?>  style="display:none;" <?php endif; ?>  >
                <img src="/static/system/images//noting.png"><div><?php echo __('没有通知'); ?></div>
            </div>  

            <!-- // 底部操作 -->
            <?php if(!(empty($list['msg']) || (($list['msg'] instanceof \think\Collection || $list['msg'] instanceof \think\Paginator ) && $list['msg']->isEmpty()))): ?>
            <div class="layui-message-footer">
            <a href="javascript:;" class="clear" data-type="msg"><?php echo __('清空通知'); ?></a><span>|</span><a href="javascript:;" class="more"><?php echo __('查看更多'); ?></a>
            </div>
            <?php endif; ?>
        </div>
   
        <div class="layui-tab-item">

            <div class="layui-message-list" >
                <?php if(is_array($list['comment']) || $list['comment'] instanceof \think\Collection || $list['comment'] instanceof \think\Paginator): $i = 0; $__LIST__ = $list['comment'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <a class="layui-message-list-item" href="javascript:;">
                    <img class="layui-message-item-icon" src="/static/system/images//head.png">
                    <div class="layui-message-item-right">
                        <h2 class="layui-message-item-title"><?php echo htmlentities($vo['title']); ?></h2>
                        <p class="layui-message-item-text"><?php echo htmlentities($vo['content']); ?></p>
                        <p class="layui-message-item-text"><?php echo htmlentities($vo['create_time']); ?></p>
                    </div>
                </a>
                <?php endforeach; endif; else: echo "" ;endif; ?>

            </div>

            <!-- // 列表为空 -->
            <div class="layui-message-list-empty" <?php if(empty($list['comment']) || (($list['comment'] instanceof \think\Collection || $list['comment'] instanceof \think\Paginator ) && $list['comment']->isEmpty())): ?> style="display:black;" <?php else: ?>  style="display:none;" <?php endif; ?>  >
                <img src="/static/system/images//noting.png"><div><?php echo __('没有私信'); ?></div>
            </div>  
            <?php if(!(empty($list['msg']) || (($list['msg'] instanceof \think\Collection || $list['msg'] instanceof \think\Paginator ) && $list['msg']->isEmpty()))): ?>
            <div class="layui-message-footer">
        <a href="javascript:;" class="clear"data-type="comment"><?php echo __('清空私信'); ?></a><span>|</span><a href="javascript:;" class="more"><?php echo __('查看更多'); ?></a>
            </div>
            <?php endif; ?>
        </div>

        <div class="layui-tab-item">

            <div class="layui-message-list" >
                <?php if(is_array($list['things']) || $list['things'] instanceof \think\Collection || $list['things'] instanceof \think\Paginator): $i = 0; $__LIST__ = $list['things'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <a class="layui-message-list-item" href="javascript:;">
                    <div class="layui-message-item-right">
                        <?php if($vo['type'] == '0'): ?>
                            <span class="layui-badge pull-right"><?php echo __('待完成'); ?></span>
                            <?php else: ?>
                            <span class="layui-badge layui-bg-gray pull-right"><?php echo __('已完成'); ?></span>
                        <?php endif; ?>
                        <h2 class="layui-message-item-title"><?php echo htmlentities($vo['title']); ?></h2>
                        <p class="layui-message-item-text"><?php echo htmlentities($vo['create_time']); ?></p>
                    </div>
                </a>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <a id="more" class="layui-message-btn-more" href="javascript:;"><?php echo __('更多'); ?></a> 
            </div>
           
            <!-- // 列表为空 -->
            <div class="layui-message-list-empty" <?php if(empty($list['things']) || (($list['things'] instanceof \think\Collection || $list['things'] instanceof \think\Paginator ) && $list['things']->isEmpty())): ?> style="display:black;" <?php else: ?>  style="display:none;" <?php endif; ?>  >
                <img src="/static/system/images//noting.png"><div><?php echo __('没有待办'); ?></div>
            </div>  
            <?php if(!(empty($list['things']) || (($list['things'] instanceof \think\Collection || $list['things'] instanceof \think\Paginator ) && $list['things']->isEmpty()))): ?>
            <div class="layui-message-footer">
            <a href="javascript:;" class="clear" data-type="things"><?php echo __('清空待办'); ?></a><span>|</span><a href="javascript:;" class="more"><?php echo __('查看更多'); ?></a>
            </div>
            <?php endif; ?>
        </div>

    </div>
</div>

<script src="/static/system/layui/layui.js?v=<?php echo release(); ?>"></script>
<script src="/static/system/js/common.js?2v=<?php echo release(); ?>"></script>

<!-- // 全局加载第三方JS -->
<script src="/static/system/js/cascadata.js?v=<?php echo release(); ?>"></script>
<script src="/static/js/tinymce/tinymce.min.js?v=<?php echo release(); ?>"></script>
<script src="/static/system/module/xmselect/xmselect.js?v=<?php echo release(); ?>"></script>
<!-- // 加载font-awesome图标 -->
<link href="/static/system/layui/css/font-awesome.css?v=<?php echo release(); ?>" rel="stylesheet" type="text/css" />
<script src="/static/js/markdown/cherry-markdown.min.js?v=<?php echo release(); ?>"></script>
<link href="/static/js/markdown/cherry-markdown.css?v=<?php echo release(); ?>" rel="stylesheet" type="text/css"/>

<script>
    layui.use(['element'], function () {
        var $ = layui.jquery;
        var element = layui.element;

        // 加载更多
        $('#more').click(function (obj) {
            layer.msg('没有更多了','info');                 
        })

        // 清空消息点击事件
        $('.clear').click(function (obj) {
            var that = $(this), typeElem = that.data('type');
            var findElem = $('#' + typeElem);

            // 删除元素
            that.parent().prev().prev().remove();
            that.parent().prev().show();
            that.parent().remove();
            // 替换标题
            findElem.text(findElem.text().replace(/\([^\)]*\)/,''));

            // 执行AJAX请求...
            
        });
    });
</script>